package com.lindroy.jetpacknotes

import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import com.lindroy.jetpacknotes.databinding.DataBindingActivity
import com.lindroy.jetpacknotes.extensions.launchAct
import com.lindroy.jetpacknotes.hilt.HiltActivity
import com.lindroy.jetpacknotes.lifecycle.LifecycleCategoryActivity
import com.lindroy.jetpacknotes.navigation.NavigationCategoryActivity
import com.lindroy.jetpacknotes.paging.Paging3Activity
import com.lindroy.jetpacknotes.viewmodel.ViewModelActivity
import kotlinx.android.synthetic.main.activity_main.*

class MainActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)
        btnLifecycle.setOnClickListener {
            launchAct<LifecycleCategoryActivity>()
        }
        btnViewModel.setOnClickListener {
            launchAct<ViewModelActivity>()
        }
        btnNavigation.setOnClickListener {
            launchAct<NavigationCategoryActivity>()
        }
        btnDataBinding.setOnClickListener {
            launchAct<DataBindingActivity>()
        }
        btnPaging.setOnClickListener {
            launchAct<Paging3Activity>()
        }
        btnHilt.setOnClickListener {
            launchAct<HiltActivity>()
        }

    }
}